import { ColumnProps } from "/@/components/ProTable/interface";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },{
            prop: "bm",
            label: "编码",
            search: true,
            width: 280,
        },
        {
            prop: "mc",
            label: "名称",
            search: true,
            width: 240,
        },
        {
            prop: "zt",
            label: "状态",
            search: true,
            enum:[{'label': '启用', value: 1}, {'label': '停用', value: 0}],
            searchType: "select",
            width: 240,
        },
        {
            prop: "bz",
            label: "备注",
        },
        {
            prop: "operation",
            label: "操作",
            width: 260,
            fixed: "right"
        }
    ]
}

export default columns;